package com.cam.framework.configuration;

import com.cam.framework.utils.DictUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component;


@Component
public class CamApplicationRunner implements CommandLineRunner {

    ApplicationContext applicationContext;

    @Autowired
    public CamApplicationRunner(ApplicationContext applicationContext) {
        super();
        this.applicationContext = applicationContext;
    }

    @Override
    public void run(String... args) throws Exception {
        DictUtils.refreshDictMap();
        System.out.println("程序启动成功");
    }
}
